package com.gzgy.ustore.api.common.exception;

public enum ExceptionCodeStatusEnum{
	
	//-------system status
	SUCCESS_STATUS (0), 
	FAILED_STATUS (-1),
	
	//-------system error
	ILLEGAL_ARGUMENT(-2),
    SESSION_EXCEPTION(-6),
    ACCESS_DATA_EXPIRED_EXCEPTION(-7),
    //用户异常 -100开始
	USER_NOT_FOUND_EXCEPTION(-100),
    USER_IS_EXISTS_EXCEPTION(-101),
    //设备异常 -200 开始
    DVC_GROUP_NOT_FOUND_EXCEPTION(-200),
    DVC_GROUP_UPDATE_FAIL_EXCEPTION(-201),
    DVC_GROUP_DELETE_FAIL_EXCEPTION(-202),
    UNKOWN_PARAMTER_EXCEPTION(-203),
    DVC_NOT_FOUND_EXCEPTION(-204),
    DVC_HAVE_BEEN_REGISTER_EXCEPTION(-205),
	//基础数据 -300
    PARAM_TYPE_NOTE_FOUND_EXCEPTION(-300),
    PARAM_TYPE_IS_EXISTS_EXCEPTION(-301),
    ORG_IS_EXITS_EXCEPTION(-302),
    ORG_NOT_FOUND_EXCEPTION(-303);
	// 定义私有变量

     private int nCode ;
     // 构造函数，枚举类型只能为私有

     private ExceptionCodeStatusEnum(int _nCode) {

         this . nCode = _nCode;

     }
     
     @Override

     public String toString() {

         return String.valueOf ( this . nCode );

     }
     
     public Integer toInt() {

         return this . nCode;

     }
}
